package vn.orderonline.web.admin.controller;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import vn.orderonline.com.core.business.restaurant.IRestaurantManager;

@Controller
public class AdminController {
	
	private static final Logger LOGGER = Logger.getLogger(AdminController.class);

	@Autowired
	private IRestaurantManager iRestaurantManager;
	
	@RequestMapping(value="/", method = RequestMethod.GET)
	public String loginPage(ModelAndView model) {
		//iRestaurantManager.getRestaurant(2);
		LOGGER.info("Hello Login Page");
		
		String message = "Hello World!";
		model.addObject("message", message);
		return "/home/login";
	}
	
	
}